<?php
class memberApp extends core
{
	public function indexAction()
	{
		
		$template	= $this->template();
		
		$template->display('member_index.php');
	}

	public function repassAction($arg)
	{
		if (isset($arg['ajax']))
		{
			$where	= array('uid'=>$arg['uid']);
			$edit	= array('password'=>$arg['password']);
			if (base::init('member')->edit($where, $edit))
				print_r('1');
		}
	}
	
	public function deleteAction($arg)
	{
		if (isset($arg['ajax']))
		{
			$uid	= array('uid'=>explode(',',$arg['uid']));
			if (base::init('member')->delete($uid))
				print_r('1');
		}
	}
	
	public function addgroupAction($arg)
	{
		
	}
}
